#include<stdio.h>
int main()
{
	double x;
	int i;
	scanf("%lf",&x);
	double money = 0;
	for(i=5;i>=1;i--) {
		money=money+1000;
		money=money/(1+12*x);
	}
	printf("%.2f\n",money);
	return 0;
}
